package com.zxf.service;

import java.util.List;
import java.util.Map;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zxf.pojo.Messages;
import com.zxf.pojo.Users;



//默认将类中的所有函数纳入事务管理.  
@Transactional  
public interface UserService {
	
	 
	  
	  
	  
	 public void insertUser(Users user,Map<String,Object> param);

	public Users getId(int userid);

	public List getUserList();

	public Map<String, Object> getUserList2();

	public List getUserList3(int pagenum, int numbers);

	public int getusertotle();

	public Users selectusers(Users users);

	//添加用户到redis
	public boolean add(Users users);

	//删除用户到redis
	public void delete(int parseInt);
	public void saveUser(final Users user);
//从redis读取用户
	public Users getuser(Users users);

	Users getuser(String keyId);

	public Users selectByUsername(String username);

	//从redis读取用户
	Users getUser(String key);

	void add2(Users user);

	//添加消息到redis
	public void saveMessage(Messages message);
	//从redis读取消息
	public Messages getmessage(String lowerCase);
	

	public List getRedisUserList(int start2, int pageSize2);

	List getRedisMessagesList(int start2, int pageSize2);

	public List getRedisMessagesList2(int start2, int pageSize2);

	public void saveMessage2(Messages message);

	public int getRedisusertotle();

	public int getRedistotle(String string);
}
